
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <?php 
	$_SETTING['sidebar'] = "FALSE";
	include $_SERVER['DOCUMENT_ROOT']."/include/header.php";
	
	$div_left_content = array(name=>"left_content",custom=>"height:auto; width:100%; float:left;");
	//$div_right_content = array(name=>"right_content",custom=>"height:auto; width:70%; float:right; ");
	$div1 = array(name=>"div1",custom=>"min-height:20px; width:95%; padding:20px 0px 0px 10px;");
	//$div2 = array(name=>"div2",custom=>"min-height:20px; width:95%; float:right; padding:20px 20px 0px 0px;");
	//$div3 = array(name=>"div3",custom=>"min-height:20px; width:95%; float:right; padding:20px 20px 0px 0px;");
	//$div4 = array(name=>"div4",custom=>"min-height:20px; width:95%; padding:20px 0px 0px 10px;");
	
	createDiv($div_left_content);
	//createDiv($div_right_content);
	createDiv($div1);
	//createDiv($div2);
	//createDiv($div3);
	//createDiv($div4);
	
?>
  <?php 
//echo"hello";
//include $_SERVER['DOCUMENT_ROOT']."/include/header.php";
?>
<div class="left_content">
<!-- box begin -->
						<div class="div1">
							<div class="border-top">
								<div class="border-right">
									<div class="border-bot">
										<div class="border-left">
											<div class="left-top-corner">
												<div class="right-top-corner">
													<div class="right-bot-corner">
														<div class="left-bot-corner">
															<div class="inner">
															<h3>Wish List</h3>
<!--  Start Coding Here -->
<div id="form_container">
<?php
//echo '1';
require_once "wishlistorder.php";
//echo '2';
/*$_SESSION["id"] = session_id();
			$_SESSION["role"] = "customer";
			$_SESSION["username"] = $row["username"];
			$_SESSION["email"] = $row["email"];
			$_SESSION["address"] = $row["address"];
			$_SESSION["name"] = $row["name"];
*/
//include("menu.php");
if (isset($_SESSION["username"])){
	//--------------------------Regist-----------------------
	$obj= new wish;
	//echo '3';
	//var_dump($obj);
	if (isset($_REQUEST["w_id"])){
		$obj->setdeleteid($_GET["w_id"]);
		$obj->deletewish();
	}
	$obj->setuserid($_SESSION["username"]);
	/*
	echo "<script type='text/javascript' > alert('ลบข้อมูลในเรียบร้อยแล้ว'); 	</script>";*/
	//echo '4';
	$obj->showwishcommon();


		//echo '5';
		//if (isset($_REQUEST["userid"])){
			
			//$obj->setuserid($_POST["userid"]);
			//if(isset($_REQUEST["group"])){
		
		
		
			//var_dump($_FILES["pic"]);
		
		
		  //header("Location: showall.php
	
	
		//}
		//else{
		//	echo("Please Login");
		//}
	
	//}
}else{
			echo("Please Login");
}
echo "<br>";


?>
<!--  End Coding Here -->
<!--  End box -->
															</div>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>

<?php include $_SERVER['DOCUMENT_ROOT']."/include/footer.php"; ?>
